<?php

// php 操作shell函数
// 1. system()
// 2. exec()

$shell = "ls";
$shell = "df -Th";
$shell = "ifconfig";
$shell = "free -m";

exec($shell, $arr, $s);

echo "<pre>";
print_r($arr);
